﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace INSTA.BankSystem.DAL
{
    public class MySqlSqlGenerator : AbstractSqlGenerator
    {
        public MySqlSqlGenerator(DataMapper mappedObject)
            : base(mappedObject)
        {}

        /// <summary>
        /// Gets the last generated primary key.
        /// </summary>
        /// <returns>
        /// the last generated primary key.
        /// </returns>
        public override string GetLastGeneratedPrimaryKey()
        {
            return "SELECT LAST_INSERT_ID();";
        }
    }
}
